package com.fengxu.springcloud.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
*@Description 传递给前端的实体类
*@Author 风珝
*@Date 2021/1/10 18:24
*@Version 1.0.0
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class CommonResult<T> {

    private Integer code;

    private String message;

    private T data;

    public CommonResult(Integer code, String message) {
        this(code,message,null);
    }
}
